package com.ahm.server.service;

import com.ahm.server.common.RespBean;
import com.ahm.server.pojo.Admin;
import com.ahm.server.pojo.Role;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ahm
 * @since 2021-09-22
 */
@Service
public interface IAdminService extends IService<Admin> {

    public IPage<Admin> selectAdminPage(Page<Admin> page);

    /**
     * 登录返回token
     * @param username
     * @param password
     * @return
     */
    RespBean login(String username, String password,String Code,HttpServletRequest request);


}
